package com.taobao.api.request;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Date;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.json.JSONWriter;
import com.taobao.api.response.RdcAligeniusRefundsCheckResponse;

/**
 * TOP API: taobao.rdc.aligenius.refunds.check request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class RdcAligeniusRefundsCheckRequest extends BaseTaobaoRequest<RdcAligeniusRefundsCheckResponse> {
	
	

	/** 
	* 入参
	 */
	private String param;

	public void setParam(String param) {
		this.param = param;
	}

	public void setParam(RefundCheckDto param) {
		this.param = new JSONWriter(false,true).write(param);
	}

	public String getParam() {
		return this.param;
	}

	public String getApiMethodName() {
		return "taobao.rdc.aligenius.refunds.check";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("param", this.param);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<RdcAligeniusRefundsCheckResponse> getResponseClass() {
		return RdcAligeniusRefundsCheckResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	
	/**
 * 入参
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class RefundCheckDto extends TaobaoObject {

	private static final long serialVersionUID = 3457887754815181136L;

	/**
		 * 审核描述
		 */
		@ApiField("msg")
		private String msg;
		/**
		 * 子订单ID
		 */
		@ApiField("oid")
		private Long oid;
		/**
		 * 审核操作时间
		 */
		@ApiField("operate_time")
		private Date operateTime;
		/**
		 * 退款金额
		 */
		@ApiField("refund_fee")
		private Long refundFee;
		/**
		 * 退款单ID
		 */
		@ApiField("refund_id")
		private Long refundId;
		/**
		 * 审核状态 恒为 SUCCESS
		 */
		@ApiField("status")
		private String status;
		/**
		 * 主订单ID
		 */
		@ApiField("tid")
		private Long tid;
	

	public String getMsg() {
			return this.msg;
		}
		public void setMsg(String msg) {
			this.msg = msg;
		}
		public Long getOid() {
			return this.oid;
		}
		public void setOid(Long oid) {
			this.oid = oid;
		}
		public Date getOperateTime() {
			return this.operateTime;
		}
		public void setOperateTime(Date operateTime) {
			this.operateTime = operateTime;
		}
		public Long getRefundFee() {
			return this.refundFee;
		}
		public void setRefundFee(Long refundFee) {
			this.refundFee = refundFee;
		}
		public Long getRefundId() {
			return this.refundId;
		}
		public void setRefundId(Long refundId) {
			this.refundId = refundId;
		}
		public String getStatus() {
			return this.status;
		}
		public void setStatus(String status) {
			this.status = status;
		}
		public Long getTid() {
			return this.tid;
		}
		public void setTid(Long tid) {
			this.tid = tid;
		}

}


}